<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
 <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>订单详情信息</title>
<link rel="stylesheet" href="${ctxPath}/static/css/bootstrap.min.css" />
</head>
<body style="padding:7.5px;">
<h3>&nbsp;商品信息</h3>
<table class="table table-striped table-bordered table-hover table-checkable"   id="datatable_ajax" >
		<thead>
			<tr>
				<th>ID</th>
				<th>商品描述</th>
				<th>金额</th>
				<th>品牌</th>
				<th>系列号</th>
				<th>分类</th>
				<th>结构</th>
				<th>款式</th>
				<th>倍折</th>
				<th>帘头款式</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${goods }" var="item">
				<c:if test="${item.type !=2 }">
					<tr>
						<td>${item.sampleId }</td>
						<td>${item.sampleDescribe }</td>
						<td>${item.goodsPrice }</td>
						<td>${item.brand }</td>
						<td>${item.series }</td>
						<td>
							<c:choose>
								<c:when test="${item.type==0 }">布艺帘</c:when>
								<c:when test="${item.type==1 }">成品帘</c:when>
							</c:choose>
						</td>
						<td>
							<c:choose>
								<c:when test="${item.structure==0 }">单布</c:when>
								<c:when test="${item.structure==1 }">单纱</c:when>
								<c:when test="${item.structure==2 }">布+纱</c:when>
							</c:choose>
						</td>
						<td>
							<c:choose>
									<c:when test="${item.style==0 }">打孔</c:when>
									<c:when test="${item.style==1 }">韩折</c:when>
									<c:when test="${item.style==2 }">挂钩</c:when>
									<c:when test="${item.style==3 }">韩折或挂钩</c:when>
									<c:when test="${item.style==4}">帘头宽</c:when>
							</c:choose>
						</td>
						<td>${item.times_fold }</td>
						<td>${item.shadeDesign }</td>
					</tr>
				</c:if>
			</c:forEach>
		</tbody>
</table>
<HR/>
<h3>&nbsp;配件信息</h3>
<table class="table table-striped table-bordered table-hover table-checkable"   id="" >
		<thead>
			<tr>
				<th>ID</th>
				<th>商品描述</th>
				<th>金额</th>
				<th>品牌</th>
				<th>系列号</th>
				<th>材质</th>
				<th>类型</th>
				<th>款式</th>
				<th>配饰</th>
				<th>长度</th>
				<th>数量</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${goods }" var="item">
				<c:if test="${item.type ==2 }">
					<tr>
						<td>${item.sampleId }</td>
						<td>${item.sampleDescribe }</td>
						<td>${item.goodsPrice }</td>
						<td>${item.brand }</td>
						<td>${item.series }</td>
						<td>${item.material }</td>
						<td>${item.accessoriesTypeId }</td>
						<td>
							<c:choose>
									<c:when test="${item.style==0 }">打孔</c:when>
									<c:when test="${item.style==1 }">韩折</c:when>
									<c:when test="${item.style==2 }">挂钩</c:when>
									<c:when test="${item.style==3 }">韩折或挂钩</c:when>
									<c:when test="${item.style==4}">帘头宽</c:when>
									<c:otherwise></c:otherwise>
							</c:choose>
						</td>
						<td>${item.acc }</td>
						<td>${item.saleNumber }</td>
						<td>${item.number }</td>
					</tr>
				</c:if>
			</c:forEach>
		</tbody>
</table>
<div style="text-align: right; padding-right:6em;padding-top: 1em;">
		<button class="btn btn-default" onclick="javascript:window.history.go(-1);">返回</button>
</div>
</body>
</html>